<style>
    .pagination{
        padding-left: 0;
        margin: 2px 0;
        border-radius: 4px;
    }
</style>
<div class="page-content">
<!--    <div class="col-sm-6 pull-right">-->
<!--        <span class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = 'info'">-->
<!--            添加-->
<!--            <i class="icon-reply icon-only"></i>-->
<!--        </span>-->
<!--    </div>-->
    <div class="page-header">
        <h1>
            {:model('menu')->getName()} {gt name="$Request.get.group_id" value="0"} [{:model('AdminGroup')->getGroupName($Request.get.group_id)}]{/gt}
        </h1>
    </div><!-- /.page-header -->

    <form class="form-horizontal" role="form" action="{:url('index')}" method="post" name="myfrom">
        <div  class="form-group" >
            <label class="control-label pull-left" style="margin-left: 20px;">发送人：</label>
            <div >
                <input type="text" class="col-xs-5 col-sm-2" value="{$name}" name="name" placeholder="请输入发送人名称">
            </div>
            <span class="btn btn-sm btn-primary pull-left" style="margin-left: 10px;" onclick="myfrom.submit()">
            搜素
            <i class="icon-reply icon-only"></i>
        </span>
        </div>

    </form>

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">

                <div class="col-xs-12">

                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                            <tr>

                                <th class="detail-col">序号</th>
                                <th>发送人id</th>
                                <th>发送人名称</th>
                                <th>接收人id</th>
                                <th>接收人名称</th>
                                <th>消息标题</th>
                                <th>消息内容</th>
                                <th>发送时间</th>

                            </tr>
                        </thead>

                        <tbody>
                            {volist name="lists" id="vo"}
                            <tr>

                                <td>{$vo.id}</td>
                                <td>{$vo.from_uid}</td>
                                <td>{$vo.from_username}</td>
                                <td>{$vo.to_uid}</td>
                                <td>{$vo.to_username}</td>

                                <td>{$vo.title}</td>
                                <td style="width: 250px;">{$vo.content}</td>
                                <td>{:date("Y-m-d H:i:s",$vo['addtime'])}</td>

                                
                            </tr>
                            {/volist}    
                        </tbody>
                    </table>
                   
                </div><!-- /.span -->
            </div><!-- /.row -->
            {$lists->render()}
            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->




